package com.bupt.datacollect.controller;

import com.bupt.datacollect.data.InvalidPacket;
import com.bupt.datacollect.service.InvalidPacketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("invalid")
public class InvalidPacketController {
    @Autowired
    private InvalidPacketService invalidPacketService;

    @RequestMapping("list")
    public List<InvalidPacket> list(){
        return invalidPacketService.list();
    }
    @RequestMapping("inList")
    public List<InvalidPacket> invalidPacketList(){
        return invalidPacketService.invalidPacketList();
    }
}
